package com.dao;

import com.pojoVO.CommentInfoVo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.ArrayList;

/**
 * Created by Administrator on 2020/4/20 0020.
 */
public interface CommentInfoVoRepository extends MongoRepository<CommentInfoVo,String> {
    ArrayList<CommentInfoVo> findByGroupIdAndStatus(Integer groupId, Byte status);
    ArrayList<CommentInfoVo> findByUserIdAndStatusAndParentId(Integer userId, Byte status,String parentId);
    CommentInfoVo findByOrderNumAndStatus(Long orderNum,Byte status);
    Page<CommentInfoVo> findByParentId(String parentId, Pageable pageable);
    ArrayList<CommentInfoVo> findByReplyUserId(Integer replyUserId);
}
